package com.naiterui.ehp.bs.ds.modules.sys.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.naiterui.ehp.bs.ds.common.entity.BaseTree;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门管理
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dept")
public class Dept extends BaseTree implements Serializable {

    private static final long serialVersionUID = 3356502919843048284L;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 上级部门名称
     */
    @TableField(exist = false)
    private String parentName;

    /**
     * 排序
     */
    private Integer orderNum;

    @TableLogic
    private Integer delFlag;


}
